package com.house.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 日期处理工具类
 */
public class DateExtUtil {

    public static String getDayFomatStr(Date date) {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd");
        String dateStr = formatter.format(date);
        return dateStr;
    }

    public static String getMonthFomatStr(Date date) {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyyMM");
        String dateStr = formatter.format(date);
        return dateStr;
    }
}
